package com.photoeditor.demo.model.bean.face;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author lyzirving
 * time        2018/12/20
 * email       lyzirving@sina.com
 * information
 */
public class FacePoint implements Parcelable {

    public float x;
    public float y;
    public float z;

    public FacePoint() {
        x = 0;
        y = 0;
        z = 0;
    }

    public FacePoint(float x, float y, float z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public FacePoint(FacePoint src) {
        this.x = src.x;
        this.y = src.y;
        this.z = src.z;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeFloat(this.x);
        dest.writeFloat(this.y);
        dest.writeFloat(this.z);
    }

    protected FacePoint(Parcel in) {
        this.x = in.readFloat();
        this.y = in.readFloat();
        this.z = in.readFloat();
    }

    public static final Creator<FacePoint> CREATOR = new Creator<FacePoint>() {
        @Override
        public FacePoint createFromParcel(Parcel source) {
            return new FacePoint(source);
        }

        @Override
        public FacePoint[] newArray(int size) {
            return new FacePoint[size];
        }
    };

}
